package com.sven;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DemoApplication {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:/META-INF/spring/consumer.xml");
        // 这里的iUserService是一个代理对象，它的底层会基于网络通信来实现远程服务的调用
        IUserService iUserService = (IUserService)context.getBean("userService");
        String st = iUserService.sayHello("小米");
        System.out.println(st);

    }

}
